package org.anachronos.jeep.ui.trace;

import org.eclipse.core.databinding.observable.list.AbstractObservableList;
import org.eclipse.jface.viewers.ViewerFilter;

class ViewerFilterObservableList extends AbstractObservableList {
	private final ViewerFilter viewerFilter;

	public ViewerFilterObservableList(final ViewerFilter viewerFilter) {
		this.viewerFilter = viewerFilter;
	}

	@Override
	public Object getElementType() {
		return null;
	}

	@Override
	protected int doGetSize() {
		return 1;
	}

	@Override
	public Object get(int index) {
		return viewerFilter;
	}		
}